import numpy as np
from sklearn import svm
from sklearn.model_selection import train_test_split
import pickle


def save_clf():
    X = np.loadtxt("data/X.csv", delimiter=",")
    y = np.loadtxt("data/y.csv", delimiter=",")

    clf = svm.SVC(kernel="linear")
    clf.fit(X, y)
    s = pickle.dumps(clf)

    f=open('data/temp/Bumblebee.model', 'wb+')
    f.write(s)
    f.close()
